package com.dingup.provider.feign.client.paike.classInfo;

import com.dingup.api.bean.feign.paike.classInfo.PkClassInfoFeignBean;
import com.dingup.api.model.classInfo.ClassInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by wancheng on 2018/10/27.
 */
@Component
@FeignClient(value = "p-pk")
public interface PaikeClassInfoFeignClient {

    /**
     * 添加班级同步EEo
     * @return
     */
    @RequestMapping(value = "/paike/feign/classInfo/add_class_sync_eeo.do", method = RequestMethod.POST)
    public Integer addClassSyncEeo(@RequestBody ClassInfo classInfo);

    /**
     * 修改班级同步EEo
     *
     * @return
     */
    @RequestMapping(value = "/paike/feign/classInfo/update_class_sync_eeo.do", method = RequestMethod.POST)
    public void updateClassSyncEeo(@RequestBody PkClassInfoFeignBean bean);

    /**
     * 删除班级同步EEo
     *
     * @return
     */
    @RequestMapping(value = "/paike/feign/classInfo/delete_class_sync_eeo.do", method = RequestMethod.POST)
    public void deleteClassSyncEeo(@RequestParam("classId") Integer classId);
}
